JS在IE下兼容,而在火狐下不兼容的技巧小結 1.兼容firefox的 outerHTML,FF中沒有outerHtml的方法。 代碼如下: if (window.HTMLElement) { HTMLElement.prot ...